package com.gg.user.gguser.service;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * @author yangxinlei
 * @date 2020/4/19
 */
public interface StaffService {


    /**
     * 获取用户列表
     *
     * role 用户类型
     *
     * page 页面页数
     * pageNumer 每页个数
     *
     */
    Object getUserStaff(HttpServletResponse response, HttpServletRequest request, Integer page, Integer pageNumber) throws Exception;

    /**
     * 状态修改
     * @param response
     * @param request
     * @param status  现在状态
     * @return
     * @throws Exception
     */

    Object setStatus(HttpServletResponse response, HttpServletRequest request, Integer status,String userId) throws Exception;

    /**
     * 修改密码
     * @param response
     * @param request
     * @param userId  用户id
     * @param userPassWord  修改的密码
     * @return
     * @throws Exception
     */
    Object updatePassWord(HttpServletResponse response, HttpServletRequest request, String userId,String userPassWord) throws Exception;

    /**
     * 用户个人中心修改东西
     * @param response
     * @param request
     * @param type      修改类型
     * @param content   修改内容
     * @return
     * @throws Exception
     */
    Object userUpdatePersonal(HttpServletResponse response, HttpServletRequest request, Integer type,String content) throws Exception;
}
